package com.fit.model.combo.member;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.apache.tapestry5.OptionGroupModel;
import org.apache.tapestry5.OptionModel;
import org.apache.tapestry5.util.AbstractSelectModel;


import com.fit.entities.member.Member;


public class MemberSelectModel extends AbstractSelectModel{

	private Collection<Member> members; 

	public MemberSelectModel(Collection<Member> readers) {
		this.members = readers;
	}

	public List<OptionGroupModel> getOptionGroups() {
		return null;
	}

	public List<OptionModel> getOptions() {
		List<OptionModel> list = new ArrayList<OptionModel>();
		for (Member a : members) {
			list.add(new MemberOptionModel(a));
		}
		return list;
	}
}
